@PACKAGE_INIT@

set_and_check(WALLYCORE_LIB_DIR @PACKAGE_LIB_CMAKE_INSTALL_DIR@)

if("wallycore" IN_LIST wallycore_FIND_COMPONENTS)
    include(${WALLYCORE_LIB_DIR}/wallycore-targets.cmake)
    set(wallycore_wallycore_FOUND TRUE)
endif()

if("libsecp256k1" IN_LIST wallycore_FIND_COMPONENTS)
    if(TARGET wallycore::libsecp256k1)
        message(FATAL_ERROR "wallycore::libsecp256k1 already defined")
    endif()
    find_package(libsecp256k1 CONFIG REQUIRED)
    add_library(wallycore::libsecp256k1 ALIAS libsecp256k1::libsecp256k1)
    set(wallycore_libsecp256k1_FOUND TRUE)
endif()

set(wallycore_COMPONENT_FOUND TRUE)

check_required_components(wallycore)
